package com.example.bankend.service.impl;



import com.example.bankend.model.Transaction;
import com.example.bankend.model.TransferDto;

import java.util.List;

public interface TransactionService {
    int insert(Transaction transaction);

    int deleteByPrimaryKey(Integer  tradeID);

    int updateByPrimaryKey(Transaction transaction);

    Transaction selectByPrimaryKey(Integer tradeID);
    List<Transaction> selectByCardID(String cardID);
    String transfer(TransferDto transferDto);
    List<Transaction> selectAll();
}
